﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Services.Description;

namespace demo2._1._4.Controllers
{
    public class HomeController : Controller
    {
        // GET: Home
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";
            ViewData["myname"] = "My name is Tom.";
            ViewData["myage"] = "I'm 20 years old.";
            TempData["guanyu"] = "I'm from Chine!";
            return View();
        }

        public ActionResult About()
        {

            return View();
        }
    }
}